package org.leon.util;

public class HttpProtocolUtil {

    public static String httpHeader200(long contentLength){
        return "HTTP/1.1 200 OK \n" +
                "Content-Type: text/html;charset=utf-8 \n" +
                "Content-Length: " + contentLength + "\n" +
                "\r\n";
    }

    public static String httpHeader404(){
        String str = "404 Not Found";
        return "HTTP/1.1 404 NOT Found \n" +
                "Content-Type: text/html;charset=utf-8 \n" +
                "Content-Length: " + str.getBytes().length + " \n" +
                "\r\n";
    }

}
